export default {
    state: {
        menus: []
    },
    getters: {
        getMenus: state => state.menus
    },
    mutations: {
        setMenus(state) {
            const query = Bmob.Query("Pizza");
            query.order("-createdAt");
            query.find().then(response => state.menus = response).catch(error => console.log(error));
            console.log("setMenus ok!");
        }
    },
    actions: {
    }
}